<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "set_product_commission".
 *
 * @property int $id
 * @property int $product_id
 * @property float $vip1
 * @property float $vip2
 * @property float $vip3
 * @property float $vip4
 * @property float $r1
 * @property float $r2
 * @property float $r3
 * @property float $r4
 * @property float $e1
 * @property float $e2
 * @property float $e3
 * @property float $e4
 */
class SetProductCommission extends \yii\db\ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return 'set_product_commission';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['product_id'], 'integer'],
            [['vip1', 'vip2', 'vip3', 'vip4', 'r1', 'r2', 'r3', 'r4', 'e1', 'e2', 'e3', 'e4'], 'number'],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'product_id' => 'Product ID',
            'vip1' => 'Vip 1',
            'vip2' => 'Vip 2',
            'vip3' => 'Vip 3',
            'vip4' => 'Vip 4',
            'r1' => 'R 1',
            'r2' => 'R 2',
            'r3' => 'R 3',
            'r4' => 'R 4',
            'e1' => 'E 1',
            'e2' => 'E 2',
            'e3' => 'E 3',
            'e4' => 'E 4',
        ];
    }
}
